package com.open4cn.simulator.core.connector.serialport;

/**
 * @author yinxiaopeng
 * @version 1.0.0
 * @company 致景科技
 * @department 飞梭BU/研发
 * @description 数据位枚举
 * @Email yinxiaopeng@zj.tech
 * @date 2022-06-10 18:53
 */
public enum DatebitsEnum {

    FIVE(5, "FIVE"),
    SIX(6, "SIX"),
    SEVEN(7, "SEVEN"),
    EIGHT(8, "EIGHT"),
    ;

    private Integer code;
    private String value;

    DatebitsEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }
}
